<template>
    <div class="father12">
        <Child1>
            <!-- <template v-slot="data">
                <ul>
                    <li v-for="(g, index) in data.games" :key="index">
                        {{g}}
                    </li>
                </ul>
            </template> -->

            <!-- 这里还可以使用解构 -->
            <template v-slot="{games}">
                <ul>
                    <li v-for="(g, index) in games" :key="index">
                        {{g}}
                    </li>
                </ul>
            </template>
        </Child1>
    </div>
</template>

<script>
import Child1 from './Child1.vue';

export default {
    name: 'Father12',
    components: {Child1},
}
</script>

<style>

</style>